package org.haredot.dto;

import org.springframework.security.core.GrantedAuthority;

public class Permission implements GrantedAuthority {

    private Long id ;

    private String name ;

    private String permission ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    @Override
    public String getAuthority() {
        return this.permission;
    }
}
